﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/ZakaBackOfficeMaster.Master"
    CodeBehind="ZakaBOEquipas.aspx.vb" Inherits="ZakaBackOffice.WebForm6" Title="BackOffice" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="FeedBackUserMessage/Mensagem.ascx" TagName="Mensagem" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="updPanel1" runat="server">
        <ContentTemplate>
            <table width="100%">
                <tr>
                    <td>
                        <uc1:Mensagem ID="Message" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:GridView ID="gvEquipas" runat="server" AutoGenerateColumns="False" BackColor="White"
                            BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" Font-Size="7.5"
                            ForeColor="Black" GridLines="None" Width="100%">
                            <Columns>
                                <asp:BoundField DataField="IDEquipa" HeaderText="ID" ReadOnly="True" SortExpression="IDJogos" />
                                <asp:BoundField DataField="NomeEquipa" HeaderText="Nome" ReadOnly="True"
                                    SortExpression="Resultado" />
                                <asp:BoundField DataField="GolosMarcados" HeaderText="G.Marcados" ReadOnly="True"
                                    SortExpression="GolosEA" />
                                <asp:BoundField DataField="GolosSofridos" HeaderText="G.Sofridos" ReadOnly="True"
                                    SortExpression="GolosEB" />
                                <asp:BoundField DataField="Vitorias" HeaderText="Vitorias" ReadOnly="True" SortExpression="MVP" />
                                <asp:BoundField DataField="Empates" HeaderText="Empates" ReadOnly="True" SortExpression="MVP" />
                                <asp:BoundField DataField="Derrotas" HeaderText="Derrotas" ReadOnly="True" SortExpression="MVP" />
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkEditar" runat="server" CausesValidation="False" CommandArgument='<%#Eval("IDEquipa") %>'
                                            CommandName="Editar"> <img 
                                        src="icons/icon_alterar.png" style='border-width:0px;' /> Editar</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkApagar" runat="server" CausesValidation="False" CommandArgument='<%#Eval("IDEquipa") %>'
                                            CommandName="Apagar"> <img 
                                        src="icons/icon_cancel.png" style='border-width:0px;' /> Apagar</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#CCCCCC" />
                            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
                            <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="#CCCCCC" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc1:Accordion ID="Accordion1" runat="server" SelectedIndex="1" AutoSize="None" FadeTransitions="True"
                            RequireOpenedPane="False" HeaderCssClass="accordionHeader" HeaderSelectedCssClass="accordionHeaderSelected"
                            ContentCssClass="accordionContent">
                            <Panes>
                                <cc1:AccordionPane ID="accAlterar" runat="server">
                                    <Header>
                                        <asp:Label ID="lblAccAlterar" runat="server"></asp:Label>
                                    </Header>
                                    <Content>
                                        <table>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label2" runat="server" Text="Nome da Equipa:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtNome" runat="server"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="txtNome"
                                                        WatermarkCssClass="watermarked" WatermarkText="Escreva aqui a Data do Jogo.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label3" runat="server" Text="Golos Marcados:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtGolosMarcados" runat="server"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="txtGolosMarcados"
                                                        WatermarkCssClass="watermarked" WatermarkText="Golos Marcados.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label4" runat="server" Text="Golos Sofridos:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtGolosSofridos" runat="server"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtGolosSofridos"
                                                        WatermarkCssClass="watermarked" WatermarkText="Golos Sofridos.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label1" runat="server" Text="Vitorias:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtVitorias" runat="server"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="txtVitorias"
                                                        WatermarkCssClass="watermarked" WatermarkText="Insira o nº de Vitorias.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label5" runat="server" Text="Empates:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtEmpates" runat="server"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" runat="server" TargetControlID="txtEmpates"
                                                        WatermarkCssClass="watermarked" WatermarkText="Insira o nº de Empates.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:Label ID="Label7" runat="server" Text="Derrotas:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:TextBox ID="txtDerrotas" runat="server"></asp:TextBox>
                                                    <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender6" runat="server" TargetControlID="txtDerrotas"
                                                        WatermarkCssClass="watermarked" WatermarkText="Insira o nº de Derrotas.">
                                                    </cc1:TextBoxWatermarkExtender>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                </td>
                                                <td>
                                                    <asp:LinkButton ID="lnkGravar" runat="server" CausesValidation="False">
                    <img src="icons/icon_save.png" style='border-width:0px;' />
                    Gravar</asp:LinkButton>
                                                    &nbsp;&nbsp;&nbsp;
                                                    <asp:LinkButton ID="lnkCancelar" runat="server" CausesValidation="False">
                    <img src="icons/icon_cancel.png" style='border-width:0px;' />
                    Cancelar</asp:LinkButton>
                                                </td>
                                                <td>
                                                </td>
                                            </tr>
                                        </table>
                                    </Content>
                                </cc1:AccordionPane>
                            </Panes>
                        </cc1:Accordion>
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
